package com.ynqxg.router

import android.app.Application
import android.os.Build
import android.os.Build.VERSION
import androidx.appcompat.content.res.AppCompatResources
import androidx.core.graphics.drawable.toBitmapOrNull
import com.ynqxg.router.manager.RouterManager
import com.ynqxg.router.view.SmartTextView
import java.io.File


class App : Application() {

    override fun onCreate() {
        super.onCreate()
        val icon = AppCompatResources.getDrawable(this, R.mipmap.ic_launcher_round)
        SmartTextView.addIcon("*{gold}", icon?.toBitmapOrNull())
        RouterManager.init("app")
    }

}